package tw.asap.plus.network.service;


import tw.asap.plus.entity.response.ResponseDataWrapper;
import tw.asap.plus.entity.User;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;

public interface UserAuthService {

    @FormUrlEncoded
    @POST("/app/auth/binding")
    ResponseDataWrapper<User> login(@Field("mobile") String mobile, @Field("smscode") String smscode);

    @FormUrlEncoded
    @POST("/app/auth/logout")
    ResponseDataWrapper logout(@Field("mobile") String mobile, @Field("token") String token);

    @FormUrlEncoded
    @POST("/app/auth/smscode")
    ResponseDataWrapper sendCode(@Field("mobile") String mobile);

}
